package com.homework.school;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:00
 * @description 姓名name，年龄age，学位degree
 */
public class Student {
    private String name;
    private int age;
    private String degree;

    public Student() {
    }

    public Student(String name, int age, String degree) {
        this.name = name;
        this.age = age;
        this.degree = degree;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", degree='" + degree + '\'' +
                '}';
    }
}
